import { defineStore } from 'pinia'
export const useUserStore = defineStore({
    id: 'user',  // 命名，唯一
    state: () => {
        return {
            userInfo: null,
        }
    },
    actions: {
        setUserInfo(data: any) {
            this.userInfo = data;
        }
    }
})